package cn.wolfcode.demo1.service;


import cn.wolfcode.demo1.domain.Department;
import cn.wolfcode.demo1.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface DepartmentService {
    // 方法 可以写你自己喜欢的方法名 ,也可以按照 MyBatis逆向工程的规范
    void add(Department department);
    void delById(Long id);
    void edit(Department department);
    Department selOneById(Long id);
    List<Department> selAll();

    //根据分页获取页面显示数据
    PageInfo<Department> query(QueryObject qo);
}
